class MainView extends eui.Component implements  eui.UIComponent {
	private playBtn:eui.Button;
	public constructor() {
		super();
		this.skinName="MainViewSkin";
	}

	protected partAdded(partName:string,instance:any):void
	{
		super.partAdded(partName,instance);
	}


	protected childrenCreated():void
	{
		super.childrenCreated();
		this.playBtn.addEventListener(egret.TouchEvent.TOUCH_TAP,this.onClick,this);
	}

	private onClick(e:egret.TouchEvent){
		console.log("按钮被点击了");
	}
	
}